package com.cosina.game.robodefence.model;

import com.cosina.game.robodefence.core.BattleEngine;
import com.cosina.game.robodefence.dao.TowerDao;
import com.cosina.game.robodefence.data.TowerData;

public class Builder {
	public static boolean isCanBuilder(int kind){
		return BattleEngine.commander.isSufficiency(TowerDao.getUpgradeCost(kind));
	}
	
	public static int[] getCurrentBuilderItem(){
		int upgradeIndex = 0;
		if(Finger.kind != -1 && Finger.isBuying() == false){
			upgradeIndex = Finger.kind;
		}
		return TowerData.menuItems[upgradeIndex];
	}
}
